package com.hgyc.mom.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典项
 * </p>
 *
 * @author fwj
 * @since 2025-01-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dict_item")
@Schema(name = "字典项")
public class SysDictItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(name = "主键ID")
    private Long id;

    /**
     * 字典ID
     */
    @Schema(name = "字典ID")
    private Long dictId;

    /**
     * 字典编码
     */
    @Schema(name = "字典编码")
    private String dictCode;

    /**
     * 字典项编码
     */
    @Schema(name = "字典项编码")
    private String itemCode;

    /**
     * 字典项文本
     */
    @Schema(name = "字典项文本")
    private String itemText;

    /**
     * 字典项键值
     */
    @Schema(name = "字典项键值")
    private String itemValue;

    /**
     * 描述
     */
    @Schema(name = "描述")
    private String description;

    /**
     * 排序
     */
    @Schema(name = "排序")
    private Integer sort;

    /**
     * 状态
     */
    @Schema(name = "排序")
    private Integer status;

    @Schema(name = "标签颜色")
    private String color;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
